<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ page import="com.chanyachting.emall.domain.Member" %>
<%@ page import="com.chanyachting.emall.util.RequestUtil" %>
<%@ page import="com.chanyachting.emall.service.MemberService" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="" /> 
<meta name="description" content="" />
<link href="css/import.css" type="text/css" rel="stylesheet" />
<title></title>
<style type="text/css">
<!--
body{
	background:url(images/bg_left.gif) -25px 0 repeat-y;
}
.ps{display:none;}
.pss{display:block;}
.t{cursor:pointer;background:url(images/ico080426_close.gif) 12px 0 no-repeat;line-height:24px; padding-left:36px; height:24px;}
.f{cursor:pointer;background:url(images/ico080426_open.gif) 12px 0 no-repeat;line-height:24px; padding-left:36px; height:24px;}
.b{cursor:pointer;background:url(images/ico080426_dot.gif) 12px 0 no-repeat;line-height:24px; padding-left:36px; height:24px;}
-->
</style>
</head>
<script language="javascript" type="text/javascript">
function w(vd)
{
  var ob=document.getElementById(vd);
  if(ob.style.display=="block" || ob.style.display=="")
  {
     ob.style.display="none";
     var ob2=document.getElementById('s'+vd);
     ob2.style.backgroundImage="url(images/ico080426_open.gif)";
  }
  else
  {
    ob.style.display="block";
    var ob2=document.getElementById('s'+vd);
    ob2.style.backgroundImage="url(images/ico080426_close.gif)";
  }
}
function k(vd)
{
  var ob=document.getElementById(vd);  
  if(ob.style.display=="block")
  {
     ob.style.display="none";
     var ob2=document.getElementById('s'+vd);
     ob2.style.backgroundImage="url(images/ico080426_open.gif)";
  }
  else
  {
    ob.style.display="block";
    var ob2=document.getElementById('s'+vd);
    ob2.style.backgroundImage="url(images/ico080426_close.gif)";
  }
}
</script>

<%

	//从session 中获得会员对象

	RequestUtil ru=new RequestUtil(request);
	
	Member member=(Member)ru.getSessionObject(MemberService.MEMBER_IN_SESSION,new Member());
	
%>

<body>
<div id="left">
	<div class="left_title"><span>用户管理中心</span></div>
    <div class="menu">
        <ul>
            <li>
                <div class="f" id="sa" onclick="k('a')">个人设置</div>
                <ol class="ps" id="a">
                    <li><a target="mainFrame" href="memberInfo.jsp">个人信息</a></li>
                    <li><a target="mainFrame" href="updateLoginPassword.jsp">更改我的密码</a></li>
                    <li><a target="mainFrame" href="updateLinkEmail.jsp">更改我的邮箱</a></li>
                    <li><a target="mainFrame" href="shortMsg.jsp">站内信息</a></li>
                    <!--<li class="close" onclick="k('a')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            
            <%
            	//如果是公司会员，加载列表
            	if(member.isCompanyMember()){

            %>
            
            <li>
                <div class="f" id="sb" onclick="k('b')">公司设置</div>
                <ol class="ps" id="b">
                    <li><a target="mainFrame" href="company_info_update.jsp">公司信息修改</a></li>
                  	<li><a target="mainFrame" href="company_yellowpage_update.jsp">管理企业黄页</a></li>
                    <!--<li class="close" onclick="k('b')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            <li>
                <div class="f" id="sc" onclick="k('c')">发布产品/服务展示</div>
                <ol class="ps" id="c">
               	 	<li><a target="mainFrame" href="product_nomal_create.jsp">发布普通商品</a></li>
                    <li><a target="mainFrame" href="product_sellyacht_create.jsp">发布游艇销售</a></li>
                    <li><a target="mainFrame" href="product_rentyacht_create.jsp">发布游艇租赁</a></li>
                    <li><a target="mainFrame" href="product_dock_create.jsp">发布码头俱乐部</a></li>
                    <li><a target="mainFrame" href="product_showyacht_create.jsp">发布游艇展览</a></li>
                    <li><a target="mainFrame" href="product_match_create.jsp">发布帆船赛事</a></li>
                   
                    <!--<li class="close" onclick="k('c')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            <li>
                <div class="f" id="sd" onclick="k('d')">管理产品/服务展示</div>
                <ol class="ps" id="d">
                	<li><a target="mainFrame" href="product_nomal_list.jsp">管理普通商品</a></li>
                    <li><a target="mainFrame" href="product_nomal_list.jsp?type=01">管理游艇销售</a></li>
                    <li><a target="mainFrame" href="product_nomal_list.jsp?type=02">管理游艇租赁</a></li>
                    <li><a target="mainFrame" href="product_nomal_list.jsp?type=03">管理码头俱乐部</a></li>
                    <li><a target="mainFrame" href="product_nomal_list.jsp?type=04">管理游艇展览</a></li>
                    <li><a target="mainFrame" href="product_nomal_list.jsp?type=05">管理帆船赛事</a></li>
                
                    <!--<li class="close" onclick="k('d')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            <li>
                <div class="f" id="sg" onclick="k('g')">人才招聘展示</div>
                <ol class="ps" id="g">
                    <li><a target="mainFrame" href="ri_create.jsp">发布人才招聘</a></li>
                    <li><a target="mainFrame" href="ri_list.jsp">管理人才招聘</a></li>
                    <!--<li class="close" onclick="k('g')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
             
            <%
            	//如果是个人会员，加载列表
            	}else{
            		
            %>
            
            <li>
                <div class="f" id="sf" onclick="k('f')">人才求职</div>
                <ol class="ps" id="f">
                    <li><a target="mainFrame" href="applicationLeter_create.jsp">发布人才库</a></li>
                    <li><a target="mainFrame" href="applicationLeter_list.jsp">管理人才库</a></li>
                    <!--<li class="close" onclick="k('f')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            
            <%		
            	}
            %>
            
            <li>
                <div class="f" id="se" onclick="k('e')">新闻和活动</div>
                <ol class="ps" id="e">
                    <li><a target="mainFrame" href="newsactivity_create.jsp">发布新闻和活动</a></li>
                  	<li><a target="mainFrame" href="newsactivity_manager.jsp">管理新闻和活动</a></li>
                  	<!--<li class="close" onclick="k('e')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            
            
            <li>
                <div class="f" id="se" onclick="k('pn')">杂志期刊</div>
                <ol class="ps" id="pn">
                    <li><a target="mainFrame" href="/chinayachting/adminBackend/periodical.do?method=create">创建期刊</a></li>
                  	<li><a target="mainFrame" href="/chinayachting/adminBackend/periodical.do?method=list">期刊列表</a></li>
                  	<!--<li class="close" onclick="k('e')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            
            
          
            <li>
                <div class="f" id="sh" onclick="k('h')">在线办公软件</div>
                <ol class="ps" id="h">
                    <li><a target="mainFrame" href="online_01.html">百会在线办公</a></li>
                  	<li><a target="mainFrame" href="online_02.html">黑莓pushmail</a></li>
                    <li><a target="mainFrame" href="online_03.html">微软SharePoint</a></li>
                    <li><a target="mainFrame" href="online_04.html">云计算服务</a></li>
                    <li><a target="mainFrame" href="online_05.html">在线办公设置</a></li>
                    <!--<li class="close" onclick="k('h')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
            <li>
                <div class="f" id="si" onclick="k('i')">帐户管理</div>
                <ol class="ps" id="i">
                  	<li><a target="mainFrame" href="memberAccount_emallProduct.jsp">订购产品/服务</a></li>
                    <li><a target="mainFrame" href="memberAccount_online_pay.jsp">充值</a></li>
                    <li><a target="mainFrame" href="memberAccount_info.jsp">帐户信息</a></li>
                    <li><a target="mainFrame" href="memberAccount_orders.jsp">付费记录</a></li>
                    <!--<li class="close" onclick="k('i')"><img src="images/close_b.gif" alt="关闭" /></li>-->
                </ol>
            </li>
        </ul>
    </div>
</div>
</body>
</html>